package com.system.dao.UserDao;

import com.system.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;

public interface UserDao {
    //登录获取数据库的用户资料
    public User Login(Connection connection, String UserCode, String UserPsw) throws SQLException;
    //注册功能
    public int Register(Connection connection, String UserCode, String UserPsw, int UserLossNub, int UserGetNub, String UserImgPath) throws SQLException;
    //注册判断用户名是否重复
    public boolean IfRepetition(Connection connection, String UserCode) throws SQLException;
    //修改密码
    public int UpdatePsw(Connection connection ,String updatePsw,int UserId) throws SQLException;
}
